
/*=========================================
* Author: Administrator
* DateTime:2017/6/20 18:16:40
* Description:$safeprojectname$
==========================================*/

using System.Collections.Generic;
using UnityEngine;

namespace OrderSystem
{
    /// <summary>
    /// 订单系统主UI类，继承自MonoBehaviour
    /// 作为Unity场景入口点，负责初始化PureMVC框架和关联各视图组件
    /// </summary>
    public class MainUI : MonoBehaviour
    {
        /// <summary>
        /// 菜单视图组件
        /// 负责显示和处理菜单相关UI交互
        /// </summary>
        public MenuView MenuView = null;
        /// <summary>
        /// 客户视图组件
        /// 负责显示和处理客户相关UI交互
        /// </summary>
        public ClientView ClientView = null;
        /// <summary>
        /// 服务员视图组件
        /// 负责显示和处理服务员相关UI交互
        /// </summary>
        public WaiterView WaitView = null;
        /// <summary>
        /// 厨师视图组件
        /// 负责显示和处理厨师相关UI交互
        /// </summary>
        public CookView CookView = null;
        /// <summary>
        /// 房间视图组件
        /// 负责显示和处理房间相关UI交互
        /// </summary>
        public HotelView HotelView = null;

        /// <summary>
        /// Unity启动回调方法
        /// 初始化ApplicationFacade并启动应用程序
        /// </summary>
        private void Start()
        {
            ApplicationFacade facade = new ApplicationFacade(PureMVC.Patterns.FacadeType.Pmvc);
            facade.StartUp(this);
        }
    }
}
